Script ABC_Handler
PrintLn(Parameter);
EndScript

Resource xx
GET / HTTP/1.1
Host: 172.21.29.40:8765
Connection: Upgrade
Pragma: no-cache
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0
Upgrade: websocket
Origin: null
Sec-WebSocket-Version: 13
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9,en-GB;q=0.8,en;q=0.7,en-US;q=0.6
Sec-WebSocket-Key: nPs+OGEwBtxFodv7zvOunQ==
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits

EndResource

Script t
StartActive("cw", "172.21.29.40", "8765", "ABC_Handler");
Sleep(100);
d();
EndScript


Script d
String s;
GetResource("xx", s);
//PrintLn(StrHex(s));
StrAppend(s, "\x0D\x0A\x0D\x0A");
:cw.Send(s);
EndScript

Resource frame
C1 4F 7A 36 A7 F7 69 D7 C2 A7 33 57 3C EB 5B FA
6C CA B6 A7 1D 1B 9E CD 5D FA A2 7D 95 86 BA A1
B9 91 9E 91 A1 9E 91 A5 9E 89 81 BA 8E 82 A1 A1
81 B9 B9 E6 F3 59 2D 4F F6 2F 7C D6 B8 FE FD 9E
59 D5 4A 29 89 25 89 4A 56 0A A6 26 C6 60 58 0B
00
EndResource

Script decode
String aa, t, u;
GetResource("aa", aa);
StrConvertHex(t, aa);
PrintLn(t);
EndScript

Script test
String u, t = "data";
StrUTF8ToWin(u, t);
PrintLn(StrHex(u));

EndScript 

Resource aa
E6 9C 8D E5 8A A1
EndResource